package com.scanner.net;

/**
 * Created by 皓然 on 2017/7/4.
 */

public class MainFactory {

    public static EDAppService emService;
    protected static final Object monitor = new Object();

    public static EDAppService getEmmServiceInstance(){
        synchronized (monitor){
            if(emService==null){
                emService = new MainRetrofit().getService();
            }
            return emService;
        }
    }

    public static MainRetrofit retrofit = null;

    public static MainRetrofit getRetrofit(){
        synchronized (monitor){
            if(retrofit==null){
                retrofit = new MainRetrofit();
            }
            return retrofit;
        }
    }
}
